package edu.whu.rose.clock.ssql.index;

import java.io.UnsupportedEncodingException;

import com.sleepycat.je.DatabaseException;

public interface IndexCache {

	public void initInsert(String key, String value) throws UnsupportedEncodingException, DatabaseException;
	
	public Object getFromDB(String key) throws UnsupportedEncodingException, DatabaseException;
	
	public void putIntoDB(String key, Object data) throws UnsupportedEncodingException, DatabaseException;
	
	public void flush() throws UnsupportedEncodingException, DatabaseException;
	
	public void statistic();

}
